package mysql

import "gorm.io/gorm"

type Collect struct {
	gorm.Model
	UserId   int64  `gorm:"tyep:int(11)" json:"userId,omitempty"`
	HouseId  int64  `gorm:"type:int(11)" json:"houseId,omitempty"`
	Collects string `gorm:"type:varchar(50)" json:"collects,omitempty"`
}

func (c *Collect) Create() error {
	return DB.Create(&c).Error
}
